import VueRouter from "vue-router";
import HerosWin from "../components/HerosWin.vue"
import HomeWin from "../components/HomeWin.vue"
import PlayWin from "../components/PlayWin.vue"

//创建路由器
export default new VueRouter({
    routes:[
        {
            //路由重定向使得初始路由调整为/home
            path: '/',
            redirect: '/home',
        },
        {
            path: '/heros',
            component: HerosWin,
        },
        {
            path: '/home',
            component: HomeWin,
        },
        {
            path: '/play',
            component: PlayWin,
        },
    ],
})

